import request from '@/utils/request'
//客户api
// 客户列表
export function getCustomerList(params) {
  return request({
    url: '/customer/list',
    method: 'get',
    params
  })
}

export function saveCustomer(data) {
  return request({
    url: '/customer/save',
    method: 'post',
    data
  })
}
// 获取客户详情
export function getCustomerDetail(params) {
  return request({
    url: `/customer/detail`,
    method: 'get',
    params
  })
}

// 删除客户
export function delCustomer(params) {
  return request({
    url: `/customer/delete`,
    method: 'delete',
    params
  })
}